/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Cahuilla</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S14943 (C-0-T14914-S14915-S14916-S14943-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianCahuilla()
 * @model extendedMetaData="name='RaceAmericanIndianCahuilla'"
 * @generated
 */
public enum RaceAmericanIndianCahuilla implements Enumerator {
	/**
	 * The '<em><b>10447</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10447_VALUE
	 * @generated
	 * @ordered
	 */
	_10447(0, "_10447", "1044-7"),

	/**
	 * The '<em><b>10454</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10454_VALUE
	 * @generated
	 * @ordered
	 */
	_10454(1, "_10454", "1045-4"),

	/**
	 * The '<em><b>10462</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10462_VALUE
	 * @generated
	 * @ordered
	 */
	_10462(2, "_10462", "1046-2"),

	/**
	 * The '<em><b>10470</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10470_VALUE
	 * @generated
	 * @ordered
	 */
	_10470(3, "_10470", "1047-0"),

	/**
	 * The '<em><b>10488</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10488_VALUE
	 * @generated
	 * @ordered
	 */
	_10488(4, "_10488", "1048-8"),

	/**
	 * The '<em><b>10496</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10496_VALUE
	 * @generated
	 * @ordered
	 */
	_10496(5, "_10496", "1049-6"),

	/**
	 * The '<em><b>10504</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10504_VALUE
	 * @generated
	 * @ordered
	 */
	_10504(6, "_10504", "1050-4"),

	/**
	 * The '<em><b>10512</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_10512_VALUE
	 * @generated
	 * @ordered
	 */
	_10512(7, "_10512", "1051-2");

	/**
	 * The '<em><b>10447</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10447</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10447
	 * @model literal="1044-7"
	 * @generated
	 * @ordered
	 */
	public static final int _10447_VALUE = 0;

	/**
	 * The '<em><b>10454</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10454</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10454
	 * @model literal="1045-4"
	 * @generated
	 * @ordered
	 */
	public static final int _10454_VALUE = 1;

	/**
	 * The '<em><b>10462</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10462</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10462
	 * @model literal="1046-2"
	 * @generated
	 * @ordered
	 */
	public static final int _10462_VALUE = 2;

	/**
	 * The '<em><b>10470</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10470</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10470
	 * @model literal="1047-0"
	 * @generated
	 * @ordered
	 */
	public static final int _10470_VALUE = 3;

	/**
	 * The '<em><b>10488</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10488</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10488
	 * @model literal="1048-8"
	 * @generated
	 * @ordered
	 */
	public static final int _10488_VALUE = 4;

	/**
	 * The '<em><b>10496</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10496</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10496
	 * @model literal="1049-6"
	 * @generated
	 * @ordered
	 */
	public static final int _10496_VALUE = 5;

	/**
	 * The '<em><b>10504</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10504</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10504
	 * @model literal="1050-4"
	 * @generated
	 * @ordered
	 */
	public static final int _10504_VALUE = 6;

	/**
	 * The '<em><b>10512</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>10512</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_10512
	 * @model literal="1051-2"
	 * @generated
	 * @ordered
	 */
	public static final int _10512_VALUE = 7;

	/**
	 * An array of all the '<em><b>Race American Indian Cahuilla</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianCahuilla[] VALUES_ARRAY =
		new RaceAmericanIndianCahuilla[] {
			_10447,
			_10454,
			_10462,
			_10470,
			_10488,
			_10496,
			_10504,
			_10512,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Cahuilla</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianCahuilla> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Cahuilla</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianCahuilla get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianCahuilla result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Cahuilla</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianCahuilla getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianCahuilla result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Cahuilla</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianCahuilla get(int value) {
		switch (value) {
			case _10447_VALUE: return _10447;
			case _10454_VALUE: return _10454;
			case _10462_VALUE: return _10462;
			case _10470_VALUE: return _10470;
			case _10488_VALUE: return _10488;
			case _10496_VALUE: return _10496;
			case _10504_VALUE: return _10504;
			case _10512_VALUE: return _10512;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianCahuilla(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianCahuilla
